    //
//  AboutViewController.m
//  ActiveDeck
//
//  Created by Laura McBride on 2/11/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "AboutViewController.h"
#import "ConsoleController.h"

@implementation AboutViewController

 // The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
/*
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization.
    }
    return self;
}
*/


// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
    [super viewDidLoad];
}


-(IBAction)closeDialog:(id)sender
{
	[self dismissModalViewControllerAnimated:YES];
}

-(IBAction)checkForUpdate:(id)sender
{
	NSLog(@"This is a NOOP, for now");
}

-(IBAction)showConsole:(id)sender
{
	NSLog(@"This opens the console dialog");
	ConsoleController *console = [[ConsoleController alloc] init];
	console.modalPresentationStyle = UIModalPresentationFormSheet;
	console.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
	[self presentModalViewController:console animated:YES];
	[console release];  //TODO: Is this correct?
	
}



- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Overriden to allow any orientation.
    return NO;
}


- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc. that aren't in use.
}


- (void)viewDidUnload {
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}


- (void)dealloc {
    [super dealloc];
}


@end
